package com.project_test.kun.travelling_1st.Discovery;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by asus on 2016/10/17 09 49.
 * 邮箱:763433963@qq.com
 */


/*
*
*      "id": "218",
      "title": "轰趴馆的狂浪之旅",
      "sub_title": "你的寂寞我来懂",
      "addr": "北京",
      "tel": "",
      "head_pic": "http://img2.handybest.com/Uploads/topic/20160805/14703741729493.jpg!phone",
      "t_sort": "1368",
      "create_time": "1470374547",
      "t_status": "1",
      "start_time": "2016-08-05",
      "end_time": "",
      "t_type": "4",
      "goods_id": "21389,21401,21400,21404,19163,20880",
      "small_title": "",
      "admin_id": "41",
      "views": "80"
* */
public class discover_bean {
    private String id;
    private String title;
    private String sub_title;
    private String addr;
    private String tel;
    private String head_pic;
    private String t_sort;
    private String create_time;
    private String t_status;
    private String start_time;
    private String end_time;
    private String t_type;
    private String goods_id;
    private String small_title;
    private String views;
    private String admin_id;

    public void parseJson(JSONObject json) throws JSONException {
        if (json != null) {
            id = json.getString("id");
            title = json.getString("title");
            sub_title = json.getString("sub_title");
            addr = json.getString("addr");
            tel = json.getString("tel");
            head_pic = json.getString("head_pic");
            t_sort = json.getString("t_sort");
            create_time = json.getString("create_time");
            t_status = json.getString("t_status");
            start_time = json.getString("start_time");
            end_time = json.getString("end_time");
            t_type = json.getString("t_type");
            goods_id = json.getString("goods_id");
            small_title = json.getString("small_title");
            views = json.getString("views");
            admin_id = json.getString("admin_id");
        }
    }

    public String getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getSub_title() {
        return sub_title;
    }

    public String getAddr() {
        return addr;
    }

    public String getTel() {
        return tel;
    }

    public String getHead_pic() {
        return head_pic;
    }

    public String getT_sort() {
        return t_sort;
    }

    public String getCreate_time() {
        return create_time;
    }

    public String getT_status() {
        return t_status;
    }

    public String getStart_time() {
        return start_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public String getT_type() {
        return t_type;
    }

    public String getGoods_id() {
        return goods_id;
    }

    public String getSmall_title() {
        return small_title;
    }

    public String getViews() {
        return views;
    }

    public String getAdmin_id() {
        return admin_id;
    }
}
